package cn.exrick.xboot.modules.Information.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import cn.exrick.xboot.modules.Equipments.entity.Equipments;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
import cn.exrick.xboot.modules.base.entity.User;
/**
 * @author Lyg
 */
@Data
@Entity
@Table(name = "t_river")
@TableName("t_river")
@ApiModel(value = "河流信息")
public class River extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "河流名称")
    private String riverName;

    @ApiModelProperty(value = "行政区域")
    private String withDepartment;

    @ApiModelProperty(value = "河流级别")
    private String rank;

    @ApiModelProperty(value = "河流类型")
    private String type;

    @ApiModelProperty(value = "巡河人员列表")
    private String users;

    @ApiModelProperty(value = "河流备注")
    private String remark;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "巡河人员")
    private String riverDetail;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "巡河人员")
    private List<RiverUser> riverUser;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "河流设备")
    private List<Equipments> equipments;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "行政区域名称")
    private String withDepartmentName;

}